package com.sky.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * 书评
 */
@Data
@ApiModel(description = "书评传递的数据模型")
public class ReviewDTO {
    @ApiModelProperty("关联的图书主键值")
    @JsonProperty("bId")
    private String bId; //书籍id
    @ApiModelProperty("内容")
    private String content;//内容
    @ApiModelProperty("评分")
    private Integer rating;//评分
    @ApiModelProperty("发布时间")
    private Date createTime;//发布时间
}
